#!/bin/sh

# port
port=$1

if [ -n $port ]; then
	echo "run server on port: $port"
	mvn spring-boot:run -Dspring-boot.run.jvmArguments="-Dserver.port=$port"
else
	echo "run server on port: 9001"
	mvn spring-boot:run -Dspring-boot.run.jvmArguments="-Dserver.port=9001"
fi